﻿
var blackList = {};
blackList.remove = function (alink, bid) {
    if (alink.locked)
        return false;

    App.confirm("真的要解除？", function () {
        alink.locked = true;
        $.ajax(
       {
           url: "/Ajax/DelBlackList",
           datatype: "json",
           cache: false,
           data: { bid: bid },
           type: "post",
           success: function (o) {
               if (o.Code == "A00001") {
                   App.showLoginDial();
               }
               else if (o.Code == "A00003") {
                   App.alert(CodeList["A00003"]);
               }
               else {
                   $(alink).parent().parent().remove();
                   App.fullTip(CodeList[o.Code], 2000, window.location.href, 3);
               }
               alink.locked = false;

           }, error: function (request) {
               App.alert(CodeList["A00003"]);
               alink.locked = false;
           }
       });
    });
};
 